package com.xnyzc.lhy.mis.feign.fallback.didi;

import com.xnyzc.lhy.common.entity.DiDiRv;
import com.xnyzc.lhy.common.penum.EDiDiErrorCode;
import com.xnyzc.lhy.mis.entity.coupon.BindCouponParam;
import com.xnyzc.lhy.mis.entity.param.worksheet.didi.*;
import com.xnyzc.lhy.mis.feign.didi.ICouponService;
import com.xnyzc.lhy.mis.feign.didi.WorkService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * 服务的降级， 如出现远程调用失败，则会触发该回调
 *
 * @author haoyfa
 */
@Slf4j
@Service
public class CouponServiceFallback implements ICouponService {

    /**
     * 绑定优惠券
     *
     * @param couponParam param
     * @return DiDiRv
     */
    @Override
    public DiDiRv bindByUidBack(BindCouponParam couponParam) {
        return DiDiRv.wrapError(EDiDiErrorCode.serverError);
    }
}
